function [globalPLI]=globalPLI(pliXsubjs)

nSubjs=size(pliXsubjs,1);
nCh=size(pliXsubjs,2);
indx=logical(ones(nCh,nCh)-tril(ones(nCh,nCh)));
globalPLI=zeros(nSubjs,1);
for i=1:nSubjs
    m=squeeze(pliXsubjs(i,:,:));
    globalPLI(i)=mean(m(indx));
end
    
    
    